翻訳と辞書
Words near each other
・ Loop rock
・ Loop scheduling
・ Loop Service (Portland Streetcar)
・ Loop space
・ Loop splitting
・ Loop start
・ Loop subdivision surface
・ Loop the Loop (Coney Island)
・ Loop the Loop (Olentangy Park)
・ Loop the Loop (Young's Million Dollar Pier)
・ Loop theorem
・ Loop tiling
・ Loop unrolling
・ Loop unswitching
・ Loop v. Litchfield
Loop variant
・ Loop, Germany
・ Loop, Texas
・ Loop, West Virginia
・ Loop-erased random walk
・ Loop-invariant code motion
・ Loop-mediated isothermal amplification
・ Loop-O-Plane
・ Loop-switch sequence
・ Loop-the-Loop (disambiguation)
・ Loop-the-Loop (song)
・ Loopallu Festival
・ Loopback
・ Loopback device
・ LoopCo


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Loop variant : ウィキペディア英語版
Loop variant
In computer science, a loop variant is a mathematical function defined on the state space of a computer program whose value is monotonically decreased with respect to a (strict) well-founded relation by the iteration of a while loop under some invariant conditions, thereby ensuring its termination. A loop variant whose range is restricted to the non-negative integers is also known as a bound function, because in this case it provides a trivial upper bound on the number of iterations of a loop before it terminates. However, a loop variant may be transfinite, and thus is not necessarily restricted to integer values.
A well-founded relation is characterized by the existence of a minimal element of every non-empty subset of its domain. The existence of a variant proves the termination of a while loop in a computer program by well-founded descent. A basic property of a well-founded relation is that it has no infinite descending chains. Therefore a loop possessing a variant will terminate after a finite number of iterations, as long as its body terminates each time.
A while loop, or, more generally, a computer program that may contain while loops, is said to be totally correct if it is partially correct and it terminates.
==Rule of inference for total correctness==
In order to formally state the rule of inference for the termination of a while loop we have demonstrated above, recall that in Floyd–Hoare logic, the rule for expressing the partial correctness of a while loop is:
:\frac} \;C\; \mathbf\; S \;\},
where ''I'' is the ''invariant'', ''C'' is the ''condition'', and ''S'' is the ''body'' of the loop. To express total correctness, we write instead:
:\frac
\; S \;(C )},
where, in addition, ''V'' is the ''variant'', and by convention the unbound symbol ''z'' is taken to be universally quantified.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Loop variant」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.